﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace mscook.core.domain
{
    public class Material :Entity
    {
        public virtual MaterialOfCookBook MaterialOfCookBook
        {
            get;
            set;
        }
        [Required(ErrorMessage = "食材名必填")]
        [StringLength(16, MinimumLength = 1, ErrorMessage = "食材名必须为1-16位")]
        public virtual string Name
        {
            get;
            set;
        }
        public virtual string Summary
        {
            set;
            get;
        }

        [StringLength(16, MinimumLength = 1, ErrorMessage = "食材名必须为1-16位")]
        public virtual string Editor
        {
            set;
            get;
        }

        public virtual string ImageName
        {
            get;
            set;
        }

        public virtual string Description
        {
            get;
            set;
        }
    }
}
